*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1600 - 300)));
    font-family: 'Noto Serif JP', serif;
}

/* header部分 */

.headerWrapper{
    z-index: 10;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 4rem;
}

.topheader{
    position: fixed;
}

.headerWrapper .logolink{
    margin-left: 3%;
    display: block;
}

.headerWrapper .toplogo{
    height: 100%;
}

.sub-color{
    position: relative;
    background-color: #48A1D9;
    z-index: 10;
}

.contact-btn{
    text-align: center;
    background-color:#2B76D9;
    padding: auto;
    margin-left: 2rem;
    padding: 0 2rem;
    cursor: pointer;
}

.contact-btn p{
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 16% 0;

}

.contact-btn i{
    margin-right: 1rem;
}

.navbar{
    display: flex;
}

.navbar ul{
    list-style: none;
    display: flex;
    margin: auto 0;
}

.navbar ul li{
    margin-left: 2rem;
}


.navbar ul li a{
    text-decoration: none;
    color:#fff;
    display:block;
    margin: auto;
    font-weight: 500;
    padding:10px 10px;
    position: relative;
}

.navbar ul li a:hover{
    color: #FFEE6E;
}

.navbar ul li a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0%;
    /*線の形状*/
    width: 100%;
    height: 2px;
    background:#FFEE6E;
    transform: scale(0, 1);/*X方向0、Y方向1*/
    /*アニメーションの指定*/
    transition: all .3s ease;
    transform-origin: left top;/*左上基点*/
}

.navbar ul li a:hover:after{
    transform: scale(1, 1);/*X方向にスケール拡大*/
}



#side-menu{
    display: none;
    right: 0;
    width: 50%;
    height: 100%;
    margin-top: 4rem;
    background-color: #2B76D9;
    padding: 5%;
    z-index: 9;
}

#side-menu ul{
    list-style: none;
}

#side-menu ul li{
    margin-top: 15%;
}

#side-menu ul li a{
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
}

.openbtn1{
    display: none;
}

#side-menu.open{
    display: block;
    top: 0;
    animation: sideMenu 0.5s ease;
}

@keyframes sideMenu {
    0%{
        opacity: 0;
        right: -100%;
    }
    100%{
        opacity: 1;
        right: 0;
    }
}    


#modal{
    position: fixed;
    background-color: #2B76D9;
    width: 100%;
    padding: 2% 0;
    top: 4rem;
    left: 0;
    z-index: 5;
    animation: modal-open 0.5s ease-out;
}

.modal-container{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.modal-container .model-right{
    margin-right: 5%;
    padding-right: 5%;
    border-right: 2px solid #fff ;
}

.modal-container h1{
    margin-bottom: 3%;
    font-size: 1.8rem;
}

.modal-container p{
    font-size: 1.8rem;
    display: flex;
}

.modal-container p span{
    margin-right: 5%;
}



#modal .open-modal{
    display: block;
    top: 0;
    
}

@keyframes modal-open {
    0%{
        opacity: 0;
        top: -100%;
    }
    75%{
        opacity: 0.1;
    }
    100%{
        opacity: 1;
        top: 0;
    }
} 

#modal.closed{
    display: block;
    top: -100%;
    animation: modal-Close 1s ease-in;
}

@keyframes modal-Close {
    0%{
        opacity: 1;
        top: 0;
    }
    50%{
        opacity: 0.1;
        top:-50%
    }
    100%{
        opacity: 0;
        top: -100%;
    }
} 





/* footer部分 */

.footerWrapper{
    display: flex;
    height: 25rem;
}


.footerLeft{
    height: 100%;
    width: 20%;
    background-color: #2B76D9;
    padding: 3% 1.2%;
}

.leftContainer{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.footerAddless{
    color: #fff;
}
.footerAddless p{
    font-size: 0.9rem;

}

.copy{
    font-size: 0.7rem;
    margin-top: 0.8rem;
}

.footerLeft img{
    width: 100%;
}

.footerRight{
    display: flex;
    background-color: #48A1D9;
    width: 80%;
    padding: 1% 5%;
}

.footerRight ul{
    list-style: none;
    margin-left: 5%;
    margin-top: 4%;
}

.footerRight ul li{
    margin-top: 1rem;
}

.footerRight ul li a{
    color: #fff;
    text-decoration: none;
}

.footerRight ul li:nth-child(1){
    margin-top: 0rem;
}



/* ボタンレイアウト */
.button{
    border: 1px solid #2B76D9;
    padding: 3% 10% 3% 7%;
    width: 50%;
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.button:hover span{
    color: #fff;
}

.button::after{
    content: "";
    border-bottom: 1px solid #2B76D9;
    width: 10%;
    position: absolute;
    left: 0%;
    top:50%;
    z-index: 3;

}
.button:hover::after{
    border-bottom: 1px solid #fff;
}

.button span {
    position: relative;
    z-index: 3;/*z-indexの数値をあげて文字を背景よりも手前に表示*/
    color:#2B76D9;
}

.btn{
    padding: 2% 3% 2% 5%;
    border: 1px solid #fff;
    width: 45%;
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.btn:nth-child(2){
    margin-left: 3%;
}

.btn::after{
    content: "";
    border-bottom: 1px solid #fff;
    width: 10%;
    position: absolute;
    left: 0%;
    top:50%;
    z-index: 3;

}
.btn::after:hover{
    border-bottom: 1px solid #2B76D9;
}

.btn span {
    position: relative;
    z-index: 3;/*z-indexの数値をあげて文字を背景よりも手前に表示*/
    color:#fff;
}

/*== 背景が流れる（左から右） */
.bgleft:before {
    content: '';
      /*絶対配置で位置を指定*/
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
      /*色や形状*/
    background:#2B76D9;/*背景色*/
    width: 100%;
    height: 100%;
      /*アニメーション*/
    transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
    transform: scale(0, 1);
    transform-origin: right top;
}
  
  /*hoverした際の形状*/
.bgleft:hover:before{
    transform-origin:left top;
    transform:scale(1, 1);
}



/* contact */

.cotactWrapper{
    margin-top: 3%;
    height: 25rem;
    background-image: url("/Media/all/contact.webp");
    background-position:bottom right;
    background-size: cover;
    display: flex;
    align-items: center;
    z-index: 0;
    position: relative;
}

.cotactWrapper::after{
    content: "";
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;

    position: absolute;
    z-index: 2;
}

.cotactWrapper>.contactContainer{
    color: #fff;
    margin: 0 auto;
    width: 30%;
    max-width: 400px;
    text-align: center;
    border-radius: 10%;
    padding: 3% 0;

    position: relative;
    z-index: 3;
    display: block;
}

.contactContainer dl{
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 5% auto;
}

.contactContainer dl dt{
    width: 50%;
    text-align: left;
}
.contactContainer dl dd{
    width: 50%;
    text-align: right;
}



/* スライド部分 */
#photoSlide h1{
    width: 18%;
    margin: 7% auto 0 auto;
}
#photoSlide h1 img{
    width: 100%;
}

/*
右から左へ
----------------------------*/
@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.d-demo__wrap {
    display: flex;
    overflow: hidden;
    height: 250px;
}

.d-demo__list {
    display: flex;
    list-style: none;
}

.d-demo__list--left{
    animation:infinity-scroll-left 80s infinite linear .5s both;
}

.d-demo__item {
    width: calc(100vw / 5);
}

.d-demo__item > img{
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.slide-top{
    border-top: 2px solid rgba(124, 124, 124, 0.322);
    padding-top: 3%;
}




/* subPagehead */
.mainvisualContainer{
    width:70%;
    margin: 0 auto;
}



#mainviual h2{
    color: #000;
    font-size: 2rem;
    font-weight: 700;
}

#mainviual p{
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
}





/*========= ローディング画面のためのCSS ===============*/
#splash {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #48A1D9;
	z-index: 9999999;
	text-align:center;
	color:#fff;
}

#splash-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#splash-logo img{
	width: 50%;
}

/*========= 画面遷移のためのCSS ===============*/

/*画面遷移アニメーション*/
.splashbg{
    display: none;
}

/*bodyにappearクラスがついたら出現*/
body.appear .splashbg{
    display: block;
    content: "";
    position:fixed;
	z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
	left: 0;
    transform: scaleX(0);
    background-color: #48A1D9;/*伸びる背景色の設定*/
	animation-name:PageAnime;
	animation-duration:1.2s;
	animation-timing-function:ease-in-out;
	animation-fill-mode:forwards;
}

@keyframes PageAnime{
	0% {
		transform-origin:left;
		transform:scaleX(0);
	}
	50% {
		transform-origin:left;
		transform:scaleX(1);
	}
	50.001% {
		transform-origin:right;
	}
	100% {
		transform-origin:right;
		transform:scaleX(0);
	}
}

/*画面遷移の後現れるコンテンツ設定*/
#container{
	opacity: 0;/*はじめは透過0に*/
}

/*bodyにappearクラスがついたら出現*/
body.appear #container{
	animation-name:PageAnimeAppear;
	animation-duration:1s;
	animation-delay: 0.8s;
	animation-fill-mode:forwards;
	opacity: 0;
}

@keyframes PageAnimeAppear{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
}
}






@media (max-width:768px){

    /* subPagehead */
    .mainvisualContainer{
        width:70%;
        margin: 0;
    }



    /* .footerの部分 */
    .footerWrapper{
        flex-direction: column-reverse;
        height: 25rem;
    }

    .footerLeft{
        width: 100%;
        background-color: #2B76D9;
        padding: 5%;
        text-align: center;
    }

    .footerLeft img{
        width: 30%;
        margin: 0 auto;
    }

    .footerAddless{
        color: #fff;
        margin-top: 2rem;
    }
    
    .footerRight{
        display: flex;
        background-color: #48A1D9;
        width: 100%;
        padding: 5%;
    }
    .footerRight .map{
        width: 70%;
    }

    .footerRight ul{
        list-style: none;
        margin-left: 5%;
        margin-top: 0;
        font-size: 0.8rem;
    }

    /* headerの部分 */

    .headerWrapper{
        width: 100vw;
    }

    .navbar{
        display: none;
    }
    
    /* ボタン外側 */
    .openbtn1{
        display: block;
        position: relative;/*ボタン内側の基点となるためrelativeを指定*/
        background:#2B76D9;
        cursor: pointer;
        width: 50px;
        height:50px;
        border-radius: 5px;
        margin: 0.5% 2% 0.5% 0.5%;
    }
    
    /*ボタン内側*/
    .openbtn1 span{
        display: inline-block;
        transition: all .4s;/*アニメーションの設定*/
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background: #fff;
        width: 45%;
    }
  
    .openbtn1 span:nth-of-type(1) {
        top:15px; 
    }
    
    .openbtn1 span:nth-of-type(2) {
        top:23px;
    }
    
    .openbtn1 span:nth-of-type(3) {
        top:31px;
    }
  
    /*activeクラスが付与されると線が回転して×に*/
    
    .openbtn1.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }
    
    .openbtn1.active span:nth-of-type(2) {
        opacity: 0;/*真ん中の線は透過*/
    }
    
    .openbtn1.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }  
    
    /* contact */

    .cotactWrapper{
        margin-bottom: 16%;
    }

    .cotactWrapper>.contactContainer{
        width: 65%;
    }

    #side-menu {
        position: fixed;
        z-index: 10;
    }

    #side-menu.closed{
        display: block;
        right: -100%;
        animation: sideMenuClose 0.5s ease;
    }
    
    @keyframes sideMenuClose {
        0%{
            opacity: 1;
            right: 0;
        }
        100%{
            opacity: 0;
            right: -100%;
        }
    }  


    /* opening */
    #splash-logo img{
        width: 100%;
    }


    /* スライド */

    #photoSlide h1{
        width: 40%;
    }

    .d-demo__wrap {
        height: 100px;
    }

    .d-demo__item {
        width: calc(100vw / 2);
    }

}

@media (min-width:769px) and (max-width:992px){

    /* headerの部分 */
    .navbar{
        display: none;
    }

    /*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
    .openbtn1{
        display: block;
        position: relative;/*ボタン内側の基点となるためrelativeを指定*/
        background:#2B76D9;
        cursor: pointer;
        width: 50px;
        height:50px;
        border-radius: 5px;
        margin: 0.5% 2% 0.5% 0.5%;
    }
    
    /*ボタン内側*/
    .openbtn1 span{
        display: inline-block;
        transition: all .4s;/*アニメーションの設定*/
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background: #fff;
        width: 45%;
        }
  
    .openbtn1 span:nth-of-type(1) {
        top:15px; 
    }
    
    .openbtn1 span:nth-of-type(2) {
        top:23px;
    }
    
    .openbtn1 span:nth-of-type(3) {
        top:31px;
    }
  
    /*activeクラスが付与されると線が回転して×に*/
    
    .openbtn1.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }
    
    .openbtn1.active span:nth-of-type(2) {
        opacity: 0;/*真ん中の線は透過*/
    }
    
    .openbtn1.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }

    /* .footerの部分 */
    .footerRight .map{
        width: 70%;
    }

    #side-menu {
        position: fixed;
        z-index: 10;
    }

    #side-menu.closed{
        display: block;
        right: -100%;
        animation: sideMenuClose 0.5s ease;
    }
    
    @keyframes sideMenuClose {
        0%{
            opacity: 1;
            right: 0;
        }
        100%{
            opacity: 0;
            right: -100%;
        }
    }  


    /* スライド */

    #photoSlide h1{
        width: 40%;
    }

    .d-demo__wrap {
        height: 180px;
    }

    .d-demo__item {
        width: calc(100vw / 3);
    }

}

@media (min-width: 993px) and (max-width: 1200px) {
    .footerRight .map{
        width: 70%;
    }
}